﻿using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using FutureApp.xl;
using System;
using System.Collections.Generic;

namespace FutureApp.Person.Dto
{
    /// <summary>
    /// 实体Dto
    /// </summary>
    [AutoMapFrom(typeof(Student))]
    public class StudentDto : EntityDto<Guid>
    {
        /// <summary>
        /// 姓名
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        public int?Sex { get; set; }

        public ICollection<BagDto> S_Bag { get; set; }

        public ICollection<ChooseDto> C_Student { get; set; }

        public TypeDto Type { get; set; }

    }


    /// <summary>
    ///  行Dto
    /// </summary>
    [AutoMapFrom(typeof(Bag))]
    public class BagDto : EntityDto<Guid>
    {
        /// <summary>
        /// 标题
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 颜色
        /// </summary>
        public string Color { get; set; }

    }

    /// <summary>
    ///  行Dto
    /// </summary>
    [AutoMapFrom(typeof(Type))]
    public class TypeDto : EntityDto<Guid>
    {
        /// <summary>
        /// 标题
        /// </summary>
        public string Name { get; set; }

    }
    /// <summary>
    /// 选课
    /// </summary>
    public class ChooseDto : EntityDto<Guid>
    {
        public string StudentName { get; set; }
        public string CourseName { get; set; }
        
    }
    /// <summary>
    /// 课程
    /// </summary>
    [AutoMapFrom(typeof(Course))]
    public class CourseDto : EntityDto<Guid>
    {
        /// <summary>
        ///课程名
        /// </summary>
        public string Course { get; set; }
        public ICollection<ChooseDto> C_Course { get; set; }

    }
}
